$(function () {

    $('#ranking_table').bootstrapTable({
        data: getRows()
    });
    $('#ranking_table').bootstrapTable('hideLoading');
       
});


function getRows() {
    var i = 0;
    var rows = [];

    for (var i = 0; i < 10; i++) {
        rows.push({
            position: i,
            team: 'Juventus' + i,
            played: 6,
            wins: 6,    
            losses: 0,
            draws: 0,
            forfaits: 0,
            saldo: 46,
            pos_goals: 57,
            neg_goals: 11,
            points: 18
        });
    }
    return rows;
}